package com.yh.patterns.factory.config_factory;

/**
 * @Auther:云尚学Java
 */
public class Client {
    public static void main(String[] args) {
        Coffee coffee = CoffeeFactory.createCoffee("american");
        System.out.println(coffee.getName());
        System.out.println("==============");
        Coffee coffee1 = CoffeeFactory.createCoffee("latte");
        System.out.println(coffee1.getName());
        System.out.println("===============");
        Coffee coffee2 = CoffeeFactory.createCoffee("cappuccino");
        System.out.println(coffee2.getName());
    }
}
